<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label for="c-docid" class="control-label col-xs-12 col-sm-2">{:__('Docid')}:</label>
        <div class="col-xs-12 col-sm-8">
                <input id="c-docid"  data-source="eduadmin/userdoc/selectpage" data-params='' data-field="username"  class="form-control selectpage" name="row[docid]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-branchids" class="control-label col-xs-12 col-sm-2">{:__('Branch')}:</label>
        <div class="col-xs-12 col-sm-8">
                <input id="c-branchids" data-rule="required" data-source="branch/selectpage" data-params='' data-multiple="false" class="form-control" name="row[branchids]" type="text" value="">
        </div>
    </div>

    <div class="form-group">
        <label for="c-courseid" class="control-label col-xs-12 col-sm-2">{:__('Courseid')}:</label>
        <div class="col-xs-12 col-sm-8">
                <input id="c-courseid" data-rule="required" data-source="eduadmin/Course/selectpage"  class="form-control" name="row[courseid]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label for="c-starttime" class="control-label col-xs-12 col-sm-2">{:__('Starttime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-starttime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[starttime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-endtime" class="control-label col-xs-12 col-sm-2">{:__('Endtime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-endtime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD" data-use-current="true" name="row[endtime]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classcount" class="control-label col-xs-12 col-sm-2">{:__('Classcount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classcount" class="form-control" name="row[classcount]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label for="c-classprice" class="control-label col-xs-12 col-sm-2">{:__('Classprice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-classprice" class="form-control" step="0.01" name="row[classprice]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label for="c-totalamount" class="control-label col-xs-12 col-sm-2">{:__('Totalamount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-totalamount" class="form-control" step="0.01" name="row[totalamount]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label for="c-paymount" class="control-label col-xs-12 col-sm-2">{:__('Paymount')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-paymount" class="form-control" step="0.01" name="row[paymount]" type="number">
        </div>
    </div>
    <div class="form-group">
        <label for="c-paystatus" class="control-label col-xs-12 col-sm-2">{:__('Paystatus')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="paystatusList" item="vo"}
            <label for="row[paystatus]-{$key}"><input id="row[paystatus]-{$key}" name="row[paystatus]" type="radio" value="{$key}" {in name="key" value="未缴费"}checked{/in} /> {$vo}</label> 
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label for="c-property" class="control-label col-xs-12 col-sm-2">{:__('Property')}:</label>
        <div class="col-xs-12 col-sm-8">
                <input id="c-property" data-source="baseadmin/teacherproperty/selectpage" data-params='' data-multiple="true" class="form-control selectpage" name="row[property]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
            <label for="c-description" class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
            <div class="col-xs-12 col-sm-8">
                    <textarea id="c-description" class="form-control editor" rows="5" cols="50" name="row[description]" ></textarea>
            </div>
        </div>
        <div class="form-group">
            <label for="c-followteacher" class="control-label col-xs-12 col-sm-2">{:__('Followteacher')}:</label>
            <div class="col-xs-12 col-sm-8">
                    <input id="c-followteacher" data-rule="required" data-source="auth/admin/selectpage" data-params='' data-field='nickname' class="form-control selectpage" name="row[followteacher]" type="text" value="">
            </div>
        </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
